﻿using System;
using System.Collections.Generic;
using System.Text;
using AspNetCs.Model;
using System.Data;
namespace AspNetCs.IDAL
{
    public interface IProvince
    {
        /// <summary>
        /// 省份添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Add(Province_Model model);

        int update(Province_Model model);

        /// <summary>
        /// 根据ID删除资料
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int del(int id);
        /// <summary>
        /// 省份列表
        /// </summary>
        /// <returns></returns>
        DataTable ProvinceList();
        void UpdateOrder(int id);
        /// <summary>
        /// 获取省份信息,filter参数直接跟" and 字段=value"
        /// </summary>
        /// <param name="filter"></param>
        /// <returns></returns>
        Province_Model GetModel(string filter);
    }
}
